package cn.ecnu.dao;

import cn.ecnu.entity.Employee;
import cn.ecnu.entity.Order;
import cn.ecnu.entity.Record;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;

@Mapper
@Repository
public interface OrderDao {

    Order getOrderByOid(String id);

    Order[] getMyOnWayReceiveOrdersByPhone(String phone);

    Order[] getMyOverReceiveOrdersByPhone(String phone);

    Order[] getMyOnWaySendOrdersByUid(String uid);

    Order[] getMyOverSendOrdersByUid(String uid);

    Order[] getMyCanceledSendOrdersByUid(String uid);

    Integer submitOrder(Order order);

    Integer updateOrder(Order order);

    Order[] getOnWayOrders();

    ArrayList<Order> getOrdersByStatus(String status);

}
